class RealtimeTeamController {
    constructor($rootScope, $scope, $cookieStore, $timeout, $state, ngDialog, dialogService, getRealtimeTeam, iRunner){

        var vm = this;

        vm.$rootScope      = $rootScope;
        vm.$cookieStore    = $cookieStore;
        vm.$timeout        = $timeout;
        vm.$state          = $state;
        vm.ngDialog        = ngDialog;
        vm.dialogService   = dialogService;
        vm.getRealtimeTeam = getRealtimeTeam;
        vm.iRunner         = iRunner;

        //判断绕圈显示样式
        if (vm.getRealtimeTeam.data.course_type == 'circle') {
            vm.circle = true;
        }
        // 团队详情
        vm.getRealtimeTeam.code==0&&(vm.teamInfo = vm.getRealtimeTeam.data);
        console.log(vm.getRealtimeTeam.data);
        
        vm.back = function() {
            vm.$rootScope.realltimeteamback = 1;
            vm.$state.go("dashboard.race.realtimelistteam");
        }
    }
}

RealtimeTeamController.$inject = ['$rootScope', '$scope', '$cookieStore', '$timeout', '$state', 'ngDialog', 'dialogService', 'getRealtimeTeam', 'iRunner']; 

export default RealtimeTeamController;